<%@page contentType="text/html"%>
<%@page pageEncoding="UTF-8" import="java.net.*,Funcionalidad.*,java.util.*"%>

<jsp:include page="Cabecera.jsp"/>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<%
        //aqui recogemos la información de la tabla en el about us
        URLDecoder deco = new URLDecoder();
        List<Extra> extra = new ArrayList();
        try {
            extra = Extras.consultaExtra(2);
        } catch (Exception ex) {
            out.print(ex.getMessage());
        }%>
<html>
    <head>
        <title>About Us</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    </head>
    <div id="principal" class="about">
        <body>
            <h1>About Us</h1>

            <table border='0' align=center>
                <%
        Iterator it = extra.iterator();
        while (it.hasNext()) {
            Extra ex = (Extra) it.next();
            //añadimos a los lados del texto las imagenes
                %>
                <tr><td><div id="about" class="dani"><img src="../images/dani.png"/></td><td><p><%=Habituales.nl2br(deco.decode(ex.getTexto(), "ISO-8859-1"))%></p></td>
                <td><div id="about" class="jc"><img src="../images/jc.png"/></td></tr>

                <tr><td><%=ex.getFecha()%></td></tr>
                <%
        }
                %>
            </table>

        </body>
    </div>
</html>
